<template>
  <div class="login">
    <div class="header">
      <div class="title">小蓝的BWIKI工具箱</div>
      <div class="tip">登陆</div>
    </div>
    <div class="login-select">
      <div class="login-select-item">
        <div class="tip">方式一</div>
        <el-button type="primary" class="button" @click="loginTypeWebview">使用内嵌登录页登陆</el-button>
      </div>
      <div class="login-select-item">
        <div class="tip">方式二</div>
        <el-button type="primary" class="button" @click="loginTypeSessdata">使用 SESSDATA 登陆</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LoginIndex',
  methods: {
    loginTypeWebview() {
      this.$router.push({ name: 'LoginTypeWebview'})
    },
    loginTypeSessdata() {
      this.$router.push({ name: 'TypeSessdata'})
    }
  },
}
</script>

<style lang="scss" scoped>
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
  .header {
    .title {
      font-size: 56px;
      color: #409EFF;
    }
    .tip {
      margin-top: 30px;
      font-size: 28px;
    }
  }
  .login-select {
    display: flex;
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    .login-select-item {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      width: 0;
      height: 300px;
      .tip {
        color: #606266;
        font-size: 20px;
      }
      .button {
        margin-top: 40px;
      }
    }
  }
}
</style>